<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScintborganismCreateDlg" widgetVar="ScintborganismCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateScintborganismTitle}">

            <h:form id="ScintborganismCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{scintborganismController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{scintborganismController.selected.nombre}" title="#{myBundle.CreateScintborganismTitle_nombre}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_reprlegal}" for="reprlegal" />
                        <p:inputText id="reprlegal" value="#{scintborganismController.selected.reprlegal}" title="#{myBundle.CreateScintborganismTitle_reprlegal}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_reprlegal}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_ruc}" for="ruc" />
                        <p:inputText id="ruc" value="#{scintborganismController.selected.ruc}" title="#{myBundle.CreateScintborganismTitle_ruc}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_ruc}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_direccion}" for="direccion" />
                        <p:inputText id="direccion" value="#{scintborganismController.selected.direccion}" title="#{myBundle.CreateScintborganismTitle_direccion}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_direccion}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_telefono1}" for="telefono1" />
                        <p:inputText id="telefono1" value="#{scintborganismController.selected.telefono1}" title="#{myBundle.CreateScintborganismTitle_telefono1}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_telefono1}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_telefono2}" for="telefono2" />
                        <p:inputText id="telefono2" value="#{scintborganismController.selected.telefono2}" title="#{myBundle.CreateScintborganismTitle_telefono2}" />

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_telefono3}" for="telefono3" />
                        <p:inputText id="telefono3" value="#{scintborganismController.selected.telefono3}" title="#{myBundle.CreateScintborganismTitle_telefono3}" />

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_fax}" for="fax" />
                        <p:inputText id="fax" value="#{scintborganismController.selected.fax}" title="#{myBundle.CreateScintborganismTitle_fax}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_fax}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_web}" for="web" />
                        <p:inputText id="web" value="#{scintborganismController.selected.web}" title="#{myBundle.CreateScintborganismTitle_web}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_web}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_latitud}" for="latitud" />
                        <p:inputText id="latitud" value="#{scintborganismController.selected.latitud}" title="#{myBundle.CreateScintborganismTitle_latitud}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_latitud}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_puntocardlat}" for="puntocardlat" />
                        <p:inputText id="puntocardlat" value="#{scintborganismController.selected.puntocardlat}" title="#{myBundle.CreateScintborganismTitle_puntocardlat}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_puntocardlat}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_longitud}" for="longitud" />
                        <p:inputText id="longitud" value="#{scintborganismController.selected.longitud}" title="#{myBundle.CreateScintborganismTitle_longitud}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_longitud}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_puntocardlon}" for="puntocardlon" />
                        <p:inputText id="puntocardlon" value="#{scintborganismController.selected.puntocardlon}" title="#{myBundle.CreateScintborganismTitle_puntocardlon}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_puntocardlon}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_evaluacion}" for="evaluacion" />
                        <p:selectBooleanCheckbox id="evaluacion" value="#{scintborganismController.selected.evaluacion}" title="#{myBundle.EditScintborganismTitle_evaluacion}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_evaluacion}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_email}" for="email" />
                        <p:inputText id="email" value="#{scintborganismController.selected.email}" title="#{myBundle.CreateScintborganismTitle_email}" required="true" requiredMessage="#{myBundle.CreateScintborganismRequiredMessage_email}"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{scintborganismController.selected.fecharegistro}" title="#{myBundle.EditScintborganismTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scintborganismController.selected.observaciones}" title="#{myBundle.CreateScintborganismTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.CreateScintborganismLabel_scintbtiporganid}" for="scintbtiporganid" />
                        <p:selectOneMenu id="scintbtiporganid" value="#{scintborganismController.selected.scintbtiporganid}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_scintbtiporganid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scintbtiporganController.items}"
                                           var="scintbtiporganidItem"
                                           itemValue="#{scintbtiporganidItem}"
                                           itemLabel="#{scintbtiporganidItem.scintbtiporganid.toString()}"
                                           />
                            <f:converter binding="#{scintbtiporganConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scintborganismController.saveNew}" value="#{myBundle.Save}" update="display,:ScintborganismListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScintborganismCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScintborganismCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
